<template>

    <RouterLink to="/AllUserFinanShow" style="margin-right: 30px;">用户理财明细</RouterLink>
    <RouterLink to="/UserBorrowAll" style="margin-right: 30px;">用户借款明细</RouterLink>

    <h1>用户投资项目列表</h1>

    <InvestInfoContent v-slot="info">
        <a href="#" @click="jump(info.id)">用户投资明细</a>
    </InvestInfoContent>

</template>

<script setup lang="ts">
import InvestInfoContent from '../Invest/InvestInfoContent.vue'

import { useRouter } from 'vue-router';

const router = useRouter();

const jump = (id: number) => {
    router.push({
        name: 'UserInvestail',
        params: {
            Id:id
        }
    })
}

</script>